package com.cy.pj.activity.service.iml;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.cy.pj.activity.dao.ActivityDao;
import com.cy.pj.activity.pojo.Activity;
import com.cy.pj.activity.service.ActivityService;
@Component
public class ActivityServiceIml implements ActivityService {
	@Autowired
	private ActivityDao activityDao;
	@Override
	public List<Activity> findActivity() {
		
		List<Activity> list = activityDao.findActivity();
		return list;
	}
	@Override
	public int deleteById(long id) {
		 int row = activityDao.deleteById(id);
		return row;
	}

}
